Repository navigation
Fix #1910: stop naming framework files by on-disk paths adopters do not have - #1949
Open
amrmelsayed wants to merge 11 commits into
Open
amrmelsayed wants to merge 11 commits into
amrmelsayed wants to merge 11 commits into
Conversation
…ters do not have Shipped prompts, protocol.json check descriptions, the CLAUDE.md/AGENTS.md templates and the workflow/command reference docs named protocols, templates and roles by location (codev/protocols/<name>/protocol.md, protocols/spir/templates/spec.md, codev/roles/<x>.md). In adopter workspaces those resolve from the installed package, so agents searched the disk for them (find / on Windows). Reworded in both trees: content is delivered by includes, the spawn prompt and porch; codev/ paths appear only as where a customization goes.
…disk path New guard scans both trees for framework paths outside resolver includes and customization pointers. Re-baselines the Spec 1280 deletion guard for the two spec-review.md lines (R9 in 1280-retirements.md).
…ces; guard catches them Templates and cheatsheets still pointed at `codev/protocols/` for the full protocol text; consult.md and the consult skill gave a fixed load path. Reworded in both trees and all skill copies. The guard now flags any codev/protocols|roles mention (directories and <placeholder> forms included) unless the line explains customization or resolution, and no longer exempts lines that merely contain "local".
…filesystem root Owner scope addition. Builder, architect and consultant roles and the CLAUDE.md/AGENTS.md templates (both trees) now say: search within the project or with built-in file search tools, never from the filesystem root; a framework file not in the project is delivered another way. Also regenerates the shipped-skill hash history for the consult skill edit in the previous commit.
…ow-list negative cases
…plain wording Owner review: the sweep was too broad and some rewording was jargon. Reverts the consult skill and its hash entry, the reference docs, the cheatsheets, the consultant role and the Key Locations line to main. Drops resolver jargon and disclaimers from the kept sites. Replaces the keyword-allow-list guard with a short test pinning the exact sites and the owner's rule. R9 now awaits the owner's sign-off at the pr gate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Shipped prompts and templates named framework files by an on-disk path (
protocols/spir/templates/spec.md,codev/protocols/experiment/protocol.md, "Read the full protocol documentation incodev/protocols/"). In adopter workspaces those files exist only inside the installed package, so agents searched the disk for them (find /on Windows, Spec 1658 finding M14). This PR removes those paths from the sites the issue found. Per the owner, it also tells agents never to search from the filesystem root.Fixes #1910
Scope is cause 1 only, as the architect set it. Cause 2 (children of a timed-out command surviving on Windows) is #1915.
Fix
Both
codev-skeleton/andcodev/, byte-identical:protocols/{spir,aspir}/consult-types/spec-review.mdnow reads "the spec follows the SPIR spec template that the specify prompt inlines."protocols/{spir,aspir}/protocol.json: thespec_templatecheck description drops the path. Porch does not read this text at runtime.templates/{CLAUDE,AGENTS}.md: the protocol list drops its nine path parentheticals. "Read the full protocol documentation incodev/protocols/" becomes "Porch andafx spawngive each agent the full text of the protocol it is running." The two templates still share a body.roles/builder.md(new "Finding files" section),roles/architect.md(Boundaries) and the templates' File Resolution section: Never search from the filesystem root (find /, a whole-drive search): search within the project directory or use your built-in file search tools. A framework file (protocol, prompt, template, role) that is not in the project is delivered to you another way, so do not go looking for it.framework-ref-audit.ts: drops a comment line that called the template's protocol-path list intentional. No logic change.R9, approved by the owner 2026-11-23. Rewording spec-review.md trips the Spec 1280 deletion guard by design. The two baselines are re-captured and logged as R9 in
codev/resources/1280-retirements.md.Left as is, for the owner to decide:
resources/workflow-reference.md("Full SPIR protocol:codev/protocols/spir/protocol.md") and theresources/commands/overview.mdlink still name paths. I treated them as orientation, not as the instructions that sent agents searching. The issue's verification grep will still list them.Test Plan
packages/codev/src/__tests__/bugfix-1910-framework-paths.test.ts(42 lines) pins the exact sites in both trees and the owner's rule. On main's text it fails 5 of 16 tests; with the fix all 16 pass.buildcheck).packages/codevsuite on the final tree: 8143 passed, 0 failed, 247 skipped. Node 22.23.4, run one at a time. Tower PID 53132 before and after.CMAP
agyCLI is not installed on this host; non-blocking).Both reviews were of a broader earlier version of this PR. At owner review it was trimmed to the above, removing sites and dropping resolver jargon. Nothing was added after the reviews.
Flaky Tests
launch-loop-exit-code.test.ts› "still auto-restarts after a crash (nonzero exit)" (packages/codev/src/agent-farm/__tests__/) failed once in an earlier full run on this Windows host withEBUSY: resource busy or locked, rmdir …\Temp\codev-1241-…. It passed alone twice and in every later full run. It is the same temp-dir-lock class as tests: load-dependent failures in the packages/codev suite on a native Windows dev machine (agy-auth-cache EPERM, metrics-model-id barrier, windows-job census, worker exit) #1923 but is not listed there. Left running.